<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link href="https://cdn.bootcss.com/twitter-bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet">
    <link href="../static/ruoyi/css/ry-ui.css" th:href="@{/ruoyi/css/ry-ui.css?v=4.0.0}" rel="stylesheet" />
    <link href="../static/css/style.css" th:href="@{/css/style.css}" rel="stylesheet" />
    <link href="../static/js/lingshui/bootstrap-table/bootstrap-table.min.css"
        th:href="@{/js/lingshui/bootstrap-table/bootstrap-table.min.css}" rel="stylesheet" />
    <link href="../static/css/workboard.css" th:href="@{/css/workboard.css}" rel="stylesheet" />

</head>

<body>
    <div class="container-div">
        <div class="tabsnav search-collapse">
            <ul class="nav_tabs">
                <li class="tab-item active" dy-id="/enterprise/enterpriseAll/qiyejibnexinxi">基本信息</li>
                <li class="tab-item" dy-id="/enterprise/enterpriseAll/qiyelianghaoxinxi">良好行为</li>
                <li class="tab-item" dy-id="/enterprise/enterpriseAll/qiyebuliangxinxi">不良行为</li>
                <li class="tab-item" dy-id="/enterprise/enterpriseAll/chengxinpingjia">诚信评价</li>
                <li class="tab-item">返回</li>
            </ul>
        </div>
        <div class="tabsbody ">
            <div class="tabsbody-item active">
                <form action="">
                    <table border="0" cellpadding="0" cellspacing="0" style="width: 100%;">
                        <tbody>
                            <tr>
                                <td>
                                    <div class="page-title">
                                        <span>企业基本信息</span>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <table cellpadding="0" cellspacing="0" class="tbEidt table table-bordered" style="table-layout: fixed; width: 100%;word-break:break-all;background-color:
                                        #ffffff;">
                                        <tbody>
                                            <tr>
                                                <td class="tdTitle" style="width: 22%;">企业名称
                                                </td>
                                                <td id="Td1" class="tdContentMerge" style="width: 28%;">
                                                    <span id="ID_CompanyMge_ucCompanyShow_ucCompanyInfo1_txtCompanyName"
                                                        th:text="${projectName}"></span>
                                                </td>
                                                <td class="tdTitle" style="width: 22%;">统一社会信用代码
                                                </td>
                                                <td id="Td20" class="tdContent" style="width: 28%;">
                                                    <span
                                                        id="ID_CompanyMge_ucCompanyShow_ucCompanyInfo1_txtFoundDate" th:text="${code}"></span>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="tdTitle">法定代表人
                                                </td>
                                                <td class="tdContent">
                                                    <span
                                                        id="ID_CompanyMge_ucCompanyShow_ucCompanyInfo1_txtOrganCode" th:text="${leader}"></span>
                                                </td>
                                                <td class="tdTitle">法定代表人身份证号
                                                </td>
                                                <td id="Td17" class="tdContent">
                                                    <span
                                                        id="ID_CompanyMge_ucCompanyShow_ucCompanyInfo1_txtEconomicNum" th:text="${leadercode}"></span>
                                                </td>
                                            </tr>
                                           
                                            <tr>
                                                <td class="tdTitle">企业注册地址
                                                </td>
                                                <td id="Td9" class="tdContentMerge" colspan="3">
                                                    <span
                                                        id="ID_CompanyMge_ucCompanyShow_ucCompanyInfo1_txtRegAddress" th:text="${address}"></span>
                                                </td>
                                            </tr>
                                            
                                            <tr>
                                                <td class="tdTitle">企业类型
                                                </td>
                                                <td class="tdContent">
                                                    <span
                                                        id="ID_CompanyMge_ucCompanyShow_ucCompanyInfo1_txtOrganCode">私营</span>
                                                </td>
                                                <td class="tdTitle">是否具备房地产开发资质
                                                </td>
                                                <td id="Td17" class="tdContent">
                                                    <span
                                                        id="ID_CompanyMge_ucCompanyShow_ucCompanyInfo1_txtEconomicNum">是</span>
                                                </td>
                                            </tr>
                                            
                                            <tr>
                                                <td class="tdTitle">房地产开发资质等级
                                                </td>
                                                <td class="tdContent">
                                                    <span
                                                        id="ID_CompanyMge_ucCompanyShow_ucCompanyInfo1_txtOrganCode">暂定开发资质</span>
                                                </td>
                                                <td class="tdTitle">发证部门
                                                </td>
                                                <td id="Td17" class="tdContent">
                                                    <span
                                                        id="ID_CompanyMge_ucCompanyShow_ucCompanyInfo1_txtEconomicNum">五指山市房产局</span>
                                                </td>
                                            </tr>
                                            
                                        </tbody>
                                    </table>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </form>
            </div>
            
            <div class="tabsbody-item">
                <form id="lianghao-formId">
                    <div class="select-list">
                        <ul>
                            <li>
                                <p style="width:70px">工程名称：</p>
                                <input type="text" name="accename"/>
                            </li>
                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm"><i class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset('lianghao-formId','lianghao')"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
                <div class="col-sm-12 select-table table-striped">
					<table id="lianghao"></table>
				</div>
            </div>
            <div class="tabsbody-item">
                <form id="buliang-formId">
                    <div class="select-list">
                        <ul>
                            <li>
                                <p style="width:70px">工程名称：</p>
                                <input type="text" name="accename"/>
                            </li>
                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm"><i class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset('buliang-formId','buliang')"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
                <div class="col-sm-12 select-table table-striped">
					<table id="buliang"></table>
				</div>
            </div>
            <div class="tabsbody-item" style="overflow:hidden;">
                <div class=" col-sm-12">
                    <div class="tabs-container">
                        <div class="tdEidtHead">
                            <span id="CompanyName" style="font-size: 18px"
                                th:text="${projectName}+'('+${code}+')'">海南建设工程股份有限公司（914600005679502693）</span>
                        </div>
                        <ul class="nav nav-tabs">
                            <li class="active"><a data-toggle="tab" href="#tab-2">建设单位</a>
                            </li>
                         
                        </ul>
                        <div class="tab-content">
                            <div id="tab-2" class="tab-pane active">
                                <div class="panel-body">
                                    <div class="containerbody">
                                        <form>
                                            <table border="0" style="width: 100%;">
                                                <tbody>
                                                    <tr>
                                                        <td style="width: 100%; height: 50px">
                                                            <table border="0"
                                                                style="border-collapse: collapse; width: 100%;">
                                                                <tbody>
                                                                    <tr>
                                                                        <td
                                                                            style="width: 48%; font-size: 14pt; color: red; text-align: right; font-weight: bold">
                                                                            当前信用分数:<span
                                                                                style="color: red">120.00</span>分
                                                                        </td>
                                                                        <td style="width: 4%">&nbsp;</td>
                                                                        <td
                                                                            style="width: 48%; font-size: 14pt; color: red; text-align: left; font-weight: bold">
                                                                            诚信等级:<span style="color: red">待评价</span>
                                                                        </td>
                                                                    </tr>
                                                                </tbody>
                                                            </table>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <table style="border: 1px solid #B1D8FF; width: 100%">
                                                                <tbody>
                                                                    <tr style="background-color: #eff6fe;">
                                                                        <td
                                                                            style="width: 100%; vertical-align: middle;">
                                                                            <img src="../static/img/jiben.png" th:src="@{/img/jiben.png}"
                                                                                style="vertical-align: middle;"><b
                                                                                style="margin-left: 10px;"><span
                                                                                    style="font-size: 14px;">基本信用分:<span
                                                                                        style="color: red">+0.00</span>分</span></b>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td>
                                                                            <div
                                                                                style="border: 1px; min-height: 80px; font-size: 14px; line-height: 40px;padding: 10px;">
                                                                                <span
                                                                                    style="font-size:16px;font-weight:bold">起评分：</span><span
                                                                                    style="color:red;font-size:16px">0</span><br>
                                                                            </div>
                                                                        </td>
                                                                    </tr>
                                                                </tbody>
                                                            </table>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td style="height: 10px">&nbsp;</td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <table style="border: 1px solid #B1D8FF; width: 100%">
                                                                <tbody>
                                                                    <tr style="background-color: #eff6fe;">
                                                                        <td style="width: 100%">
                                                                            <img src="../static/img/lianghao.png" th:src="@{/img/lianghao.png}"
                                                                                style="vertical-align: middle;"><b
                                                                                style="margin-left: 10px;"><span
                                                                                    style="font-size: 14px;">良好行为信息:(起评分
                                                                                    <font style="color:red">0</font>
                                                                                    分，加分
                                                                                    <font style="color:red">0</font>
                                                                                    分，得分
                                                                                    <font style="color:red">0</font>
                                                                                    分)</span></b>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td>
                                                                            <div
                                                                                style="border: 1px; min-height: 100px; line-height: 150%;font-size: 14px; ">
                                                                            </div>
                                                                        </td>
                                                                    </tr>
                                                                </tbody>
                                                            </table>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td style="height: 10px">&nbsp;</td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <table style="border: 1px solid #B1D8FF; width: 100%">
                                                                <tbody>
                                                                    <tr style="background-color: #eff6fe;">
                                                                        <td style="width: 100%; ">
                                                                            <img src="../static/img/buliang.png" th:src="@{/img/buliang.png}"
                                                                                style="vertical-align: middle;"><b
                                                                                style="margin-left: 10px;"><span
                                                                                    style="font-size: 14px;">不良行为信息:(起评分
                                                                                    <font style="color:red">120</font>
                                                                                    分，减分<font style="color:red">0分
                                                                                    </font>，得分
                                                                                    <font style="color:red">120分
                                                                                    </font>
                                                                                    )</span></b>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td>
                                                                            <div
                                                                                style="border: 1px; min-height: 100px; line-height: 150%;font-size: 14px; vertical-align:top">
                                                                            </div>
                                                                        </td>
                                                                    </tr>
                                                                </tbody>
                                                            </table>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td style="height: 5px">&nbsp;</td>
                                                    </tr>
                                                </tbody>
                                            </table>
                                        </form>
                                    </div>
                                </div>
                            </div>

                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
    var prefix = ctx + "integrityEvaluation/enterprisesRealTime";
    
        $(document).ready(function () {
            $('.nav_tabs li').click(function () {
                $(this).addClass('active').siblings().removeClass('active');
                var index = $(this).index();
                var textname = $(this).text();
                $(".tabsbody .tabsbody-item").eq(index).show().siblings().hide();
                $("#iframeMain").attr("src", $(this).attr("dy-id"));
                if ($(this).text() == '返回') {
                    window.history.back(-1);
                };
                $(".tabsbody .tabsbody-item").eq(index).show().siblings().hide();
            	switch(textname){
            	case '良好行为': lianghao();
            	break;
            	case '不良行为': buliang();
            	break;	
            	}
            })
            
            function lianghao(){
            	var options = {
            	showSearch:false,
            	showRefresh:false,
            	showToggle:false,
            	showColumns:false,
               	id:'lianghao',		
               	url: prefix + "/lianghaoList",
               	detailUrl: prefix + "/lianghaoDetail/{id}",
               	modalName: "良好行为",
               	columns: [{
                        field: 'id',
                        title: '序号',
						formatter: function (value, row, index) {
						
						    return index + 1;
						}
                    }, {
                        field: 'behaviordescription',
                        title: '行为描述',
                        formatter: function (value, row, index) {
                            var actions = [];
                            //actions.push('<a href="'+prefix+'/detail?name='+value+'">'+value+'</a>'); 
                            actions.push('<a href="javascript:void(0)" onclick="$.operate.detailFull(\'' + value + '\')">'+value+'</a>');
                            return actions.join('');
                        }
                    }, {
                        field: 'name',
                        title: '工程名称'
                    },
                    {
                        field: 'incentiveinstitution',
                        title: '奖励机构'
                    },
                    {
                        field: 'bonuspoints',
                        title: '加分分值'
                    },
                    {
                        field: 'states',
                        title: '状态'
                    },
                    {
	                    field: 'time',
	                    title: '登记日期' 
                    }
                    ]
            }
            	$.table.init(options);
            }
            
            function buliang(){
            	var options = {
            	showSearch:false,
            	showRefresh:false,
            	showToggle:false,
            	showColumns:false,
               	id:'buliang',		
               	url: prefix + "/buliangList",
               	detailUrl: prefix + "/buliangDetail/{id}",
               	modalName: "不良行为",
               	columns: [{
                        field: 'id',
                        title: '序号',
						formatter: function (value, row, index) {
						
						    return index + 1;
						}
                    }, {
                        field: 'behaviordescription',
                        title: '行为描述',
                        formatter: function (value, row, index) {
                            var actions = [];
                            //actions.push('<a href="'+prefix+'/detail?name='+value+'">'+value+'</a>'); 
                            actions.push('<a href="javascript:void(0)" onclick="$.operate.detailFull(\'' + value + '\')">'+value+'</a>');
                            return actions.join('');
                        }
                    }, {
                        field: 'name',
                        title: '工程名称'
                    },
                    {
                        field: 'punishmentinstitution',
                        title: '处罚机构机构'
                    },
                    {
                        field: 'deductionscore',
                        title: '扣分分值'
                    },
                    {
                        field: 'states',
                        title: '状态'
                    },
                    {
                        field: 'time',
                        title: '登记日期' 
                    }]
            }
            	$.table.init(options);
            }
        })

    </script>
</body>

</html>